﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RESTInfocorp.Dominio;
using System.ServiceModel.Web;

namespace RESTInfocorp
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IInfocorp" in both code and config file together.
    [ServiceContract]
    public interface IInfocorp
    {
        [OperationContract]
        [WebInvoke(Method="GET", UriTemplate="Infocorp", ResponseFormat= WebMessageFormat.Json)]
        List<Persona> ObtenerPersonas();

        //[OperationContract]
        //[WebInvoke(Method = "GET", UriTemplate = "Infocorp/{nroDocumento}", ResponseFormat = WebMessageFormat.Json)]
        //List<Persona> ObtenerPersonasDocumento(string nroDocumento);


        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Infocorp/{nroDocumento}", ResponseFormat = WebMessageFormat.Json)]
        string ObtenerPersonasDeuda(string nroDocumento);
    }
}
